package com.yyq.adms.yyb.softwareManager.pojo;

import java.io.Serializable;
import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
import javax.persistence.Transient;

import com.yyq.sos.pojo.BaseEntity;

/**
 * 软著申请
 * @author 杨应滨
 * @2012-11-25
 *
 */
@Entity
@Table(name="reportdeclare")
public class ReportDeclare extends BaseEntity implements Serializable{

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	
	@Override
	public String toString() {
		// TODO Auto-generated method stub
		return super.toString();
	}
	
	/**
	 * 著作权人
	 */
	private String author;
	
	/**
	 * 所属平台ID
	 */
	private String belongPlateFormID;
	
	/**
	 * 是否可用
	 */
	private Integer isEnabled;
	
	/**
	 * 是否全局可视
	 */
//	private Integer isGlobal;
	
	/**
	 * 是否有附件
	 */
//	private Integer isHavePatents;
	
	
	/**
	 * 软件名称
	 */
	private String reportName;
	
	/**
	 * 报送单位
	 */
	private String sentDep;
	
	/**
	 * 数据来源
	 */
//	private Integer sourceID;
	
	/**
	 * 状态
	 */
	private String states;// 1：申请中；2：已获批;3:未获批
	
	/**
	 * 提交时间
	 */
	private Date submitDate;
	
	/**
	 * 完成人
	 */
	private String submitPerson;
	
	/**
	 * 是否提交给总部
	 */
//	private Integer isSumbitTop;
	
	/**
	 * 所属年份，不需要加入数据库
	 */
	private String belongYear;
	
	/**
	 * 批注
	 */
	private String endorse;
	
	
	/**
	 * 单位名称
	 */
	private String sentDepName;
	
	public ReportDeclare(){};

	public ReportDeclare(String author, String belongPlateFormID,
			Integer isEnabled, Integer isGlobal, Integer isHavePatents, 
			String reportName, String sentDep, String states,
			Date submitDate, String submitPerson,
			Integer isSumbitTop) {
		super();
		this.author = author;
		this.belongPlateFormID = belongPlateFormID;
		this.isEnabled = isEnabled;
		//this.isGlobal = isGlobal;
//		this.isGlobal = 0;// 默认  不是全局变量，需求也是局部变量
//		this.isHavePatents = isHavePatents;
		this.reportName = reportName;
		this.sentDep = sentDep;
//		this.sourceID = sourceID;
		this.states = states;
		this.submitDate = submitDate;
		this.submitPerson = submitPerson;
//		this.isSumbitTop = isSumbitTop;
	}

	@Column(name = "author", length = 100)
	public String getAuthor() {
		return author;
	}

	@Column(name = "belongplateformid")
	public String getBelongPlateFormID() {
		return belongPlateFormID;
	}

	@Column(name = "isenabled")
	public Integer getIsEnabled() {
		return isEnabled;
	}
	
//	@Column(name = "isglobal")
//	public Integer getIsGlobal() {
//		return isGlobal;
//	}
//
//	@Column(name = "ishavepatents")
//	public Integer getIsHavePatents() {
//		return isHavePatents;
//	}
//
//	@Column(name = "issubmittop")
//	public Integer getIsSumbitTop() {
//		return isSumbitTop;
//	}


	@Column(name = "reportname",length=100)
	public String getReportName() {
		return reportName;
	}

	@Transient
	public String getSentDep() {
		return sentDep;
	}

//	@Column(name = "sourceid")
//	public Integer getSourceID() {
//		return sourceID;
//	}
	
	@Column(name = "states",length = 50)
	public String getStates() {
		return states;
	}

	@Column(name = "submitdate")
	public Date getSubmitDate() {
		return submitDate;
	}

	@Column(name = "submitperson",length = 100)
	public String getSubmitPerson() {
		return submitPerson;
	}

	@Column(name = "author",length = 100)
	public void setAuthor(String author) {
		this.author = author;
	}

	public void setBelongPlateFormID(String belongPlateFormID) {
		this.belongPlateFormID = belongPlateFormID;
	}

	public void setIsEnabled(Integer isEnabled) {
		this.isEnabled = isEnabled;
	}

//	public void setIsGlobal(Integer isGlobal) {
//		this.isGlobal = isGlobal;
//		this.isGlobal = 0;
//	}
//
//	public void setIsHavePatents(Integer isHavePatents) {
//		this.isHavePatents = isHavePatents;
//	}
//
//	public void setIsSumbitTop(Integer isSumbitTop) {
//		this.isSumbitTop = isSumbitTop;
//	}


	public void setReportName(String reportName) {
		this.reportName = reportName;
	}

	public void setSentDep(String sentDep) {
		this.sentDep = sentDep;
	}

//	public void setSourceID(Integer sourceID) {
//		this.sourceID = sourceID;
//	}

	public void setStates(String states) {
		this.states = states;
	}

	public void setSubmitDate(Date submitDate) {
		this.submitDate = submitDate;
	}


	public void setSubmitPerson(String submitPerson) {
		this.submitPerson = submitPerson;
	}

	@Transient
	public String getBelongYear() {
		return belongYear;
	}

	public void setBelongYear(String belongYear) {
		this.belongYear = belongYear;
	}

	@Column(name="endorse")
	public String getEndorse() {
		return endorse;
	}

	public void setEndorse(String endorse) {
		this.endorse = endorse;
	}

	@Column(name="sentdepname")
	public String getSentDepName() {
		return sentDepName;
	}

	public void setSentDepName(String sentDepName) {
		this.sentDepName = sentDepName;
	}
	
}
